var shang = null;
			var count = 0;
			function onButton() {
				var currentNumber = $("#currentNumber").val();
				var toNumber = $("#toNumber").val();
				var info = $("#info").val();
				var nValue = "";
				shang = info;
				while(shang.length > 0) {
					nValue = "" + qiuyu(shang, currentNumber, toNumber) + nValue;
				}
				$("#result").val(nValue);
			}

			function qiuyu(MTempValue, m, n) {
				shang = "";
				var temp = 0;
				count = 0;
				while(MTempValue.length > 0) {
					var t = getIntFromStr(MTempValue.substring(0, 1));

					MTempValue = MTempValue.substring(1);
					temp = temp * m + t;
					shang += getStrFromInt(Math.floor(temp / n));
					temp = temp % n;
				}

				while(shang.length > 0 && shang.charAt(0) == '0' ||shang.charAt(0) == 'B') {
					console.log(shang);
					shang = shang.substring(1);
					
					//console.log(++count);
				}
				
				return getStrFromInt(temp);
			}

			function getIntFromStr(str) {
				return str.charAt(0) <= '9' && str.charAt(0) >= '0' ?
					str.charAt(0) - '0' : str.charAt(0) - 'a' + 10;
			}

			function getStrFromInt(value) {
				var result = "";
				var customSymbol;
				var toNumber = $("#toNumber").val();
				if(toNumber <= 62) {
					customSymbol = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
					
				}
				
				if(toNumber == 64) {
					customSymbol = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
					
				}

				return customSymbol.charAt(value);
			}